package cn.jobstart.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import cn.jobstart.pubInter.exception.SkException;
import cn.jobstart.pubInter.IBaseService;
import cn.jobstart.pubInter.RestfulController;
import cn.jobstart.dto.DouyinVideoDTO;
import cn.jobstart.dto.DouyinVideoPageDTO;
import cn.jobstart.modelExt.DouyinVideoExt;
import cn.jobstart.searchExt.DouyinVideoSearchExt;
import cn.jobstart.service.IDouyinVideoService;
import cn.jobstart.vo.DouyinVideoDetailVO;
import cn.jobstart.vo.DouyinVideoListVO;
import cn.jobstart.vo.DouyinVideoDomainVO;
import cn.jobstart.vo.DouyinVideoDetailDomainVO;
import cn.jobstart.export.DouyinVideoDomainExport;
import cn.jobstart.controller.ApiManageController;
import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import cn.jobstart.pubInter.exception.BusinessException;

/**
*    @author xy
*    @Date 2024-01-08 10:38:29
*    @description DouyinVideoController       抖音视频列表
*/
@Api(tags = "后台管理系统- 抖音视频列表相关", description = " 抖音视频列表相关接口")
@RestController(value ="douyinVideoRestfulController")
@RequestMapping("/douyinVideo/")
@Validated
public class DouyinVideoController extends ApiManageController<DouyinVideoDTO,DouyinVideoPageDTO,DouyinVideoExt, DouyinVideoSearchExt,DouyinVideoDomainVO,DouyinVideoDetailDomainVO,DouyinVideoDetailVO,DouyinVideoListVO,String> {

	@Resource(name = "douyinVideoService")
	private IDouyinVideoService douyinVideoService;



	@Override
	public IBaseService<DouyinVideoExt, DouyinVideoSearchExt,String> getBaseService() throws SkException {
		return douyinVideoService;
	}

	@Override
	public String getBaseRoute() {
		return "/douyinVideo/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return " 抖音视频列表";
	}

	@Override
	public Class exportExcelClass() {
		return DouyinVideoDomainExport.class;
	}

	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(douyin_video.dv_id) as countNum");

		return totalMapSet;
	}


}